package com.come4loves.game.dataconfig.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.come4loves.core.dataconfig.ServiceAdapter;
import com.come4loves.game.dataconfig.model.SystemConfig;

/**
 * 技能卡
 * 
 * @author jerry
 *
 */
@Component
public class SystemService extends ServiceAdapter {

	public static SystemConfig systemConfig;
	
	@Override
	public void clear() {
		systemConfig = null;
	}

	@Override
	public void initialize() {
		List<SystemConfig> list = this.dataConfig.listAll(this, SystemConfig.class);
		for (SystemConfig config : list) {
			systemConfig = config;
		}
	}
}
